<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ page import="java.util.List" %>
<%@ page import="model.SuShe"%>
<%@ page import="dao.SuSheDao"%>  

<%
	//检查会话中是否有 "wy" 属性
	Object fdyObj = session.getAttribute("wy");
	if (fdyObj == null) {
	    response.sendRedirect("../view/Login.jsp");
	    return;
	}
%>
    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>物业修改配置信息页面</title>

<link href="../css/Utils.css" rel="stylesheet" type="text/css" />
<link href="../css/List.css" rel="stylesheet" type="text/css" />
<!-- 退出登录专用 -->
   <script type="text/javascript" src="../view/Loginout.js"></script>

</head>
<body>

<!-- 头部 -->
<div class="header" ><br>
<nerong>&nbsp;&nbsp;物业页面&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;</nerong>

 <button onclick="confirmLogout('<%= (String)session.getAttribute("wy") %>','wy')">退出登录</button>
</div><br>

<div class="left" >
<table width="80%" height="80%">
<th>
<nerong>物业可选择内容</nerong>

</th>

</th>
<tr>
<td>
<a>&emsp;个人信息</a><br>
</td>
</tr>

<tr>
<td>
<a href="../View_fix/WyFix.jsp">&emsp;报修信息处理</a><br>
</td>
</tr>

<tr>
<td>
<a>&emsp;宿舍水电信息管理</a><br>
</td>
</tr>

<tr>
<td>
<a href = "../View_SuShe/SuSheWyMain.jsp">&emsp;宿舍配置信息管理</a><br>
</td>
</tr>


</table>
</div>



<div class="context" >
<!-- 这部分是每个大功能的小功能 -->
<%
    String roomid = request.getParameter("number");
    String quota = request.getParameter("quota");
    String guige = request.getParameter("guige");
%>
   
   
        <h2>修改宿舍配置信息</h2>
        
        <form action="../U_Wy_SuSheServlet" method="post"> 
            
                <label for="roomid">宿舍号</label>
                <input type="text" id="roomid" name="roomid" value="<%= roomid %>" readonly>
            
            
                <label for="quota">水电费配额</label>
                <input type="text" id="quota" name="quota" value="<%= quota %>">
            
            
                <label for="guige">宿舍规格</label>
                <input type="text" id="guige" name="guige" value="<%= guige %>">
            
                <button type="submit" name="action" value="update">确认修改</button>
                <button type="button" onclick="window.location.href='SuSheWyMain.jsp'">取消修改</button>
            
        </form>
    </div>



</body>
</html>